<template>
  <div class="not-found">
    <div class="contanier">
      <div class="title">404错误</div>
      <div class="sub-title">找不到网页!</div>
      <div class="content">
        对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。
      </div>
      <el-button type="primary" round @click="backHandleClick"
        >返回首页</el-button
      >
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()
const backHandleClick = () => {
  router.push('/main')
}
</script>

<style lang="less" scoped>
.not-found {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  .contanier {
    padding-top: 100px;
    width: 320px;
    .title {
      font-weight: 700;
      font-size: 32px;
      line-height: 40px;
      color: #1482f0;
      margin-bottom: 20px;
    }
    .sub-title {
      font-size: 20px;
      line-height: 24px;
      color: #222;
      margin-bottom: 10px;
      font-weight: 700;
    }
    .content {
      font-size: 13px;
      line-height: 21px;
      color: grey;
      margin-bottom: 30px;
    }
  }
}
</style>
